package com.xxl.bean;

import java.util.Objects;

public class Classes {
    private Integer classesId;
    private String classesName;

    public Classes() {
    }

    public Classes(Integer classesId, String classesName) {
        this.classesId = classesId;
        this.classesName = classesName;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o){
            return true;
        }
        if (o == null || getClass() != o.getClass()){
            return false;
        }
        Classes classes = (Classes) o;
        return Objects.equals(classesId, classes.classesId) &&
                Objects.equals(classesName, classes.classesName);
    }

    @Override
    public int hashCode() {
        return Objects.hash(classesId, classesName);
    }

    public Integer getClassesId() {
        return classesId;
    }

    public void setClassesId(Integer classesId) {
        this.classesId = classesId;
    }

    public String getClassesName() {
        return classesName;
    }

    public void setClassesName(String classesName) {
        this.classesName = classesName;
    }

    @Override
    public String toString() {
        return "Classes{" +
                "classesId=" + classesId +
                ", classesName='" + classesName + '\'' +
                '}';
    }
}
